package com.mm.cloud.common.core.base;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 分页查询基础类
 *
 * @author mr
 * @since 2021-06-30
 */
@Data
public class PageDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "当前第几页，默认1", example = "1")
    private int page = 1;

    @Schema(description = "每页显示条数，默认10", example = "10")
    private int limit = 10;
}
